package com.neusoft.service.impl;

import com.neusoft.mapper.CommentMapper;
import com.neusoft.po.Comment;
import com.neusoft.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {

    @Autowired
    private CommentMapper commentMapper;

    @Override
    public List<Comment> listCommentByBusinessId(Integer businessId) { return commentMapper.listCommentByBusinessId(businessId); }

    @Override
    public int saveComment(Comment comment) { return commentMapper.saveComment(comment); }

    @Override
    public int updateComment(Integer id, String content) { return commentMapper.updateComment(id, content); }

    @Override
    public int removeComment(Integer id) { return commentMapper.removeComment(id); }
}
